package com.itheima.reggie.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author GRS
 * @since 2024/4/19 下午7:45
 */
@AllArgsConstructor
@Builder
@Data
@NoArgsConstructor
public class Setmeal implements Serializable
{
    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    // 分类ID
    private Long categoryId;

    // 套餐名称
    private String name;

    // 套餐价格
    private BigDecimal price;

    // 套餐状态 0 停用 1 启用
    private Integer status;

    // 商品码
    private String code;

    // 描述信息
    private String description;

    // 图片
    private String image;

    @TableField(fill = FieldFill.INSERT)
    private String createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    @TableLogic
    private Integer isDeleted;
}